<template>
  <h1>{{ heading }}, {{ msg }}</h1>
</template>

<script>
export default {
  name: "Title",
  props: {
    heading: {
      type: String,
      default: "默认的标题"
    }
  },
  setup(props) {
    // console.log(props.heading)

    return {
      msg: "hello"
    }
  },
  mounted() {
    console.log(this.msg)
    // console.log(this.heading)
  }
}
</script>
